package chapter08_class

/**
 * Created with IntelliJ IDEA.
 * ClassName: Test15_Abs
 * Package: chapter08_class
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 *          Date: 2023-07-04
 *          Time: 10:16
 */

object Test15_Abs {
  def main(args: Array[String]): Unit = {

  }
}

class Person15 {
  val name: String = "person"
  var age: Int = 20
}

class Student15 extends Person15{
  //age是var申明的 本身就是变量 重写不在有意 提示也只有name
  override val name: String = "_"
}